//
//  FPAddressPopupView.h
//  FinanceProject
//
//  Created by 陈显摆 on 2025/1/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^AddressSelectionBlock)(NSString *province, NSString *city , NSString *cityCode);

@interface FPAddressPopupView : UIView

@property (nonatomic, strong) NSDictionary *addressData;    // 存储省市区数据的字典
@property (nonatomic, copy) AddressSelectionBlock selectionBlock;  // 选择的回调

- (instancetype)initWithAddressData:(NSDictionary *)data;

- (void)show;  // 弹出选择器视图
- (void)dismiss;  // 关闭选择器视图

@end

NS_ASSUME_NONNULL_END
